import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
public abstract class AllyControlCenter {
    protected String allyName;
    protected List<Observer> players=new ArrayList<>();
    public String getAllyName() {
        return allyName;
    }

    public void setAllyName(String allyName) {
        this.allyName = allyName;
    }

    public void join(Observer obs){
        players.add(obs);
    }
    public void quit(Observer obs){
        players.remove(obs);
    }
    public abstract void notifyObserver(String name);
}
